package com.legendshop.oa.model ;
import java.util.Date;

import com.legendshop.dao.persistence.Column;
import com.legendshop.dao.persistence.Entity;
import com.legendshop.dao.persistence.GeneratedValue;
import com.legendshop.dao.persistence.GenerationType;
import com.legendshop.dao.persistence.Id;
import com.legendshop.dao.persistence.Table;
import com.legendshop.dao.persistence.TableGenerator;
import com.legendshop.dao.persistence.Transient;
import com.legendshop.dao.support.GenericEntity;
import com.legendshop.oa.security.UserDetail;

/**
 *
 */
@Entity
@Table(name = "ls_project_plan")
public class ProjectPlan implements GenericEntity<Long> {

	private static final long serialVersionUID = 7148145480770979619L;

	/** 主键 */
	private Long id; 
	
	/** 标题  */
	private String title; 
		
	/** 负责人,用逗号隔开 */
	private String userName; 
	
	/** 负责人真实名字 */
	private String userRealName; 
		
	/** 项目Id */
	private Long projectId; 
	
	/** 项目模块Id */
	private Long moduleId; 
	
	/** 项目模块名称 */
	private String moduleName; 
		
	/** 计划项 */
	private String work; 
		
	/** 开始时间 */
	private Date startDate; 
		
	/** 结束时间 */
	private Date endDate; 
		
	/** 建立时间 */
	private Date createTime; 
	
	/** 是否删除 **/
	private Integer deleted;
	
	/** 状态 **/
	private Integer status;
	
	/** 颜色 **/
	private String color;
	
	/** 建立者 **/
	private String createBy;
	
	private UserDetail userDetail;
		
	
	public ProjectPlan() {
    }
		
	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "generator")
	@TableGenerator(name = "generator", pkColumnValue = "PROJECT_PLAN_SEQ")
	public Long  getId(){
		return id;
	} 
		
	public void setId(Long id){
			this.id = id;
		}
		
    @Column(name = "user_name")
	public String  getUserName(){
		return userName;
	} 
		
	public void setUserName(String userName){
			this.userName = userName;
		}
		
    @Column(name = "project_id")
	public Long  getProjectId(){
		return projectId;
	} 
		
	public void setProjectId(Long projectId){
			this.projectId = projectId;
		}
		
    @Column(name = "work")
	public String  getWork(){
		return work;
	} 
		
	public void setWork(String work){
			this.work = work;
		}
		
    @Column(name = "start_date")
	public Date  getStartDate(){
		return startDate;
	} 
		
	public void setStartDate(Date startDate){
			this.startDate = startDate;
		}
		
    @Column(name = "end_date")
	public Date  getEndDate(){
		return endDate;
	} 
		
	public void setEndDate(Date endDate){
			this.endDate = endDate;
		}
		
    @Column(name = "create_time")
	public Date  getCreateTime(){
		return createTime;
	} 
		
	public void setCreateTime(Date createTime){
			this.createTime = createTime;
		}

    @Column(name = "deleted")
	public Integer getDeleted() {
		return deleted;
	}

	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}

    @Column(name = "user_real_name")
	public String getUserRealName() {
		return userRealName;
	}

	public void setUserRealName(String userRealName) {
		this.userRealName = userRealName;
	}

    @Column(name = "status")
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

    @Column(name = "color")
	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

    @Column(name = "title")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Transient
	public UserDetail getUserDetail() {
		return userDetail;
	}

	public void setUserDetail(UserDetail userDetail) {
		this.userDetail = userDetail;
	}

    @Column(name = "createBy")
	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

    @Column(name = "module_id")
	public Long getModuleId() {
		return moduleId;
	}

	public void setModuleId(Long moduleId) {
		this.moduleId = moduleId;
	}

	@Transient
	public String getModuleName() {
		return moduleName;
	}

	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}


} 
